home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
math
/
ucalc30c.zip
/
PLOTDEMO
< prev
next >
Wrap
Text File
|
1996-04-17
|
1KB
|
49 lines
; To run this demo, type UCALC < PLOTDEMO at the DOS prompt.
; Please remember to register.
prec 4 ; Many graphs do not require high precision for visual accuracy.
gcolor 8 ; GCOLOR sets the background color.
plot
y=sin(x) ; Try the different menu options,
y=2sin(x) ; and then press [Esc] to move on to the next screen.
y=3sin(x)
y=4sin(x)
plot y=x*sin(x)-2
grid 7
plot y=x*sin(x)-2, 1 to 5 ; Same equation, but within an interval
grid 0 ; grid is turned off
prec 10 ; precision is reset to default
plot r=t/pi, 0 to 5pi ; Polar equation
plot x=cos(t)-cos(2t), y=sin(t)-sin(2t), 0 to 2pi ; Parametric equation
plot 3*sin(t), t, -7.5 to 7.5 ; Another parametric equation
window(0,10,0,8) ; (0,0) is now on the bottom left of the screen
plot x^sin(x)
window(-10,10,-7.5,7.5) ; Back to the default window setting
plot ; Plot by itself prompts for multiple equations
line(-6,-5,-1,4)
y=sin(x)
y=2sin(x)
r=2cos(3t)
x=2cos(t), y=2sin(t)
rect(5,3,7,7)
fill(6,4)
plot"graph1.dat" ; Plots the data from another file
plot
sin(x)
rect(-9,-5,-4,-2)
"graph2.dat"
exit